/**
 * @param {number} n
 * @return {number}
 */
 var integerBreak = function(n) {
   if(n==2) return 1
   if(n==3) return 2
  let dp = []
  dp[0] = 0
  dp[1] =0
  dp[2] = 2
  dp[3] = 3
  for(let i=4;i<=n;i++){
    dp[i] = Math.max(dp[i-2]*2,dp[i-3]*3)
  }
  // return dp[n]
  console.log(dp);
};
integerBreak(10)